package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhDeptGameMapper;
import com.ruoyi.system.domain.ZhDeptGame;
import com.ruoyi.system.service.IZhDeptGameService;
import com.ruoyi.common.support.Convert;
import org.springframework.transaction.annotation.Transactional;

/**
 * 站点游戏 服务层实现
 * 
 * @author ruoyi
 * @date 2019-06-23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class ZhDeptGameServiceImpl implements IZhDeptGameService 
{
	@Autowired
	private ZhDeptGameMapper zhDeptGameMapper;

	/**
     * 查询站点游戏信息
     * 
     * @param id 站点游戏ID
     * @return 站点游戏信息
     */
    @Override
	public ZhDeptGame selectZhDeptGameById(Integer id)
	{
	    return zhDeptGameMapper.selectZhDeptGameById(id);
	}
	
	/**
     * 查询站点游戏列表
     * 
     * @param zhDeptGame 站点游戏信息
     * @return 站点游戏集合
     */
	@Override
	public List<ZhDeptGame> selectZhDeptGameList(ZhDeptGame zhDeptGame)
	{
	    return zhDeptGameMapper.selectZhDeptGameList(zhDeptGame);
	}
	
    /**
     * 新增站点游戏
     * 
     * @param zhDeptGame 站点游戏信息
     * @return 结果
     */
	@Override
	public int insertZhDeptGame(ZhDeptGame zhDeptGame)
	{
	    return zhDeptGameMapper.insertZhDeptGame(zhDeptGame);
	}
	
	/**
     * 修改站点游戏
     * 
     * @param zhDeptGame 站点游戏信息
     * @return 结果
     */
	@Override
	public int updateZhDeptGame(ZhDeptGame zhDeptGame)
	{
	    return zhDeptGameMapper.updateZhDeptGame(zhDeptGame);
	}

	/**
     * 删除站点游戏对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteZhDeptGameByIds(String ids)
	{
		return zhDeptGameMapper.deleteZhDeptGameByIds(Convert.toStrArray(ids));
	}
	
}
